package com.zbkj.crmeb.store.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class UpdateUserAddressRequest implements Serializable {

    @ApiModelProperty(value = "主订单id")
    @NotNull(message = "主订单id不能为空")
    private Integer id;

    @ApiModelProperty(value = "区域类型")
    @NotNull(message = "区域类型不能为空")
    private Integer areaType;

    @ApiModelProperty(value = "用户姓名")
    @NotBlank
    private String realName;

    @ApiModelProperty(value = "收货人身份证号")
    private String idCard;

    @ApiModelProperty(value = "用户电话")
    @NotBlank
    private String userPhone;

    @ApiModelProperty(value = "收货人所在省")
    @NotBlank
    private String province;
    @ApiModelProperty(value = "收货人所在市")
    @NotBlank
    private String city;
    @ApiModelProperty(value = "收货人所在区")
    @NotBlank
    private String district;
    @ApiModelProperty(value = "收货人详细地址")
    @NotBlank
    private String detail;
}